import request from '@/utils/request'

// 查询入库任务列表
export function listImsStoclInWork(query) {
  return request({
    url: '/ims_data/imsStockInWork/list',
    method: 'get',
    params: query,
  })
}

// 查询托盘码
export function listPalletCodeSku(query) {
  return request({
    url: '/ims/palletCodeSku/list',
    method: 'get',
    params: query,
  })
}

// 查询历史入库任务列表
export function listImsStoclInWorkHistory(query) {
  return request({
    url: '/ims_data/imsStockInWorkHistory/list',
    method: 'get',
    params: query,
  })
}

// 查询历史入库任务详细
export function getImsStoclInWorkHistory(inWorkId) {
  return request({
    url: '/ims_data/imsStockInWorkHistory/' + inWorkId,
    method: 'get',
  })
}

// 新增历史入库任务
export function addImsStoclInWorkHistory(data) {
  return request({
    url: '/ims_data/imsStockInWorkHistory',
    method: 'post',
    data: data,
  })
}

// 修改历史入库任务
export function updateImsStoclInWorkHistory(data) {
  return request({
    url: '/ims_data/imsStockInWorkHistory',
    method: 'put',
    data: data,
  })
}

// 删除历史入库任务
export function delImsStoclInWorkHistory(inWorkId) {
  return request({
    url: '/ims_data/imsStockInWorkHistory/' + inWorkId,
    method: 'delete',
  })
}

// 强制终止
export function forcedTermination(data) {
  return request({
    url: '/ims_data/imsStockInWork/forcedTermination',
    method: 'post',
    data: data,
  })
}
